package com.ht.temp.controller;


import com.ht.temp.entity.HourReport;
import com.ht.temp.service.IHomeService;
import com.ht.temp.service.IHourReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mayke_zhou
 * @since 2018-12-24
 */
@RestController
@RequestMapping("/hourController")
public class HourReportController {

    @Autowired
    private IHourReportService iHourReportService;

    @RequestMapping(value = "/getHourReportByDays",method = RequestMethod.POST)
    public List<HourReport> getHourReportByDays(Integer deviceId, String startTime, String endTime){
        return iHourReportService.getHourReportByDays(deviceId,startTime,endTime);
    }
}
